package design.mode.oberver.item2;

public class RegNotificationObserver implements RegObserver {
    private NotificationService notificationService;

    @Override
    public void handleRegSuccess(long userId) {
        //  函数中使用线程池来执行每个观察者的 handleRegSuccess() 函数
        notificationService.sendInboxMessage(userId, "Welcome...");
    }
}